package com.simtop.dao;

import com.simtop.pojo.SwyDone;
import com.simtop.pojo.SwyDone2;
import com.simtop.pojo.YongdaoPo;
import com.simtop.pojo.newOneListVo;
import com.simtop.pojo.wddata.MainTain;
import com.simtop.pojo.wddata.WdDate;
import com.simtop.pojo.wddata.api;
import com.simtop.vo.Echarts3Vo;
import com.simtop.vo.MessageVo;
import com.simtop.vo.Swread;
import com.simtop.vo.UserVoS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface ApiMapper {


    void saverapi(@Param("allvalue") String data, @Param("createtime") String createtime,@Param("plant") String plant);

    api findAlldevice();

    boolean savedata(List<WdDate> lastDate);

    List<MainTain> findAlldeviceList();

    WdDate findDeviceValue(@Param("deviceId") int deviceId,@Param("testType") String testType);


    WdDate findDeviceStatusValue(@Param("deviceId") int deviceId);


    void updateDevice(@Param("deviceId")Integer deviceId ,@Param("devicepolicelist") String devicepolicelist,@Param("testLocation") String testLocation, @Param("deviceNormalup") Integer deviceNormalup,@Param("devicePolicedown") Integer devicePolicedown);

    void insertYongdao(List<YongdaoPo> yongDao);

    List<SwyDone> findAllSwyDone();

    List<SwyDone2> findAllSwyDone2();

    void deletesw();

    void deletesws();

    void insertfxuser(@Param("swuserid") Integer swuserid,@Param("data") String data);

    newOneListVo findOneFx(@Param("swuserid") Integer swuserid);

    void changeOne(@Param("swuserid") Integer swuserid);

    int findAllSwyDoneOne();

    void changeOneStatus();

    void saveAllcxList(List<SwyDone> yongdaoPoList);

    List<SwyDone> findAllSwyDone1();



    void changeOneStatus2();

    int finids(@Param("swuserid") Integer swuserid);

    void changezbStatus(@Param("lastid") int lastid);

    int selectStatus();

    void changeStatus1();

    void changeStatus2();

    void changeOneStatus2s();

    int finStatuszt();

    int findTameid(@Param("userteam") String userteam);

    void saveAlluser(List<UserVoS> userVoSArrayList);

    void updateBackendUser(UserVoS user);

    void saveBegin(@Param("formatbegin") String formatbegin);

    void saveEnd(@Param("formatend") String formatend,@Param("swuserid") Integer swuserid);

    int getid(@Param("swuserid") Integer swuserid);

    void getStartTime(@Param("last") int last , @Param("formatend") String formatend);

    List<Swread> swreadList();

    void asveAllread(List<Swread> swreadList);

    List<Swread> findsw(@Param("tameName") String tameName,
                        @Param("types") String types,
                        @Param("readTimeBegins") String readTimeBegins,
                        @Param("readTimeEnds") String readTimeEnds,
                        @Param("column")String column,
                        @Param("order")String order);

    int getOne(@Param("userId") Integer userId);

    void changeUser(@Param("id") Integer id);

    void changeScore(@Param("score")Integer score,
                     @Param("swuserid")Integer swuserid);

    List<Swread> findSwread();

    List<Swread> findSwread2(@Param("sqsyidlist") ArrayList<Integer> sqsyidlist);

    Echarts3Vo findScore();

    Echarts3Vo findContent();

    List<String> findGroupTime();

    Integer dinOneCount(@Param("as") String as);

    MessageVo findmessage();

    void changemessage(@Param("status") Integer status,@Param("swContent") String swContent);

    void deletestatusByid(@Param("swuserid") Integer swuserid);
}
